package zl.com;

import java.util.ArrayList;
import java.util.Iterator;

/**
 * Created with Intellij IDEA.
 * Description:
 * User:张蕾
 * Date:2023-05-30
 * Time:23:40
 */
public class MainRedPacket {
    public static void main(String[] args) {
        Manager manager = new Manager("群主",100);

        Member one = new Member("成员A",0);
        Member tow = new Member("成员B",0);
        Member three = new Member("成员C",0);

        manager.show();
        one.show();
        tow.show();
        three.show();
        System.out.println("111111111111111111111111111111111");

        ArrayList<Integer> redList = manager.Send(20,3);

        one.receive(redList);
        tow.receive(redList);
        three.receive(redList);

        manager.show();
        one.show();
        tow.show();
        three.show();


    }
}
